import { get, post, patch, deleteR } from "@/http/request";

export const getList = async (params: any) => {
	return get<any>({}, "/student/", params);
};

export const addStudent = async (data: FormData) => {
	return post<any>(
		{
			headers: { "Content-Type": "multipart/form-data" },
		},
		"/student",
		data,
	);
};

// 删除用户
export const delStudent = async (id: number) => {
	return deleteR<any>({}, `/student/${id}`);
};
